*** Yoram Z. Haftel, Daniel Wajner, and Dan Eran. 2020 The Short and Long(er) of It: The Effect of Hard Times on Regional Institutionalization. International Studies Quarterly ***
*** Replication of Results ***

use "C:\Users\user\Dropbox\REOs and Development\ISQ Submission August 2019\ISQ Final Submission\Crises and REOs ISQ Final July 2020.dta", clear

** Table 1 - IMRI & Fixed Effects**

* Model 1 - IMRI & crisis years t-1 to t-5
xi: xtreg imri crises_weighted_new tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m1

* Model 2 - IMRI & crisis years t-1 to t-2
xi: xtreg imri crises_t_12 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m2

* Model 3 - IMRI & crisis years t-4 to t-5
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m3

esttab m1 m2 m3 using tableA.rtf, replace coeflabel (crises_weighted_new "Economic Crisis (t-1 to t-5)" crises_t_12 "Economic Crises (t-1 to t-2)" crises_t_45 "Economic Crises (t-4 to t-5)" tradeshare "Trade Share" concen "Concentration" dem_dummy "Democracy Dummy" civilmem "Civil War" ln_dev "Development" ln_devstd "Development Diversity" ipd_std "Ideal Point Diversity" duration "Duration" members "Members" _cons "Constant")r2 star(~ 0.2 * 0.1 ** 0.05 *** 0.01)

** Table 2 - IMSCOPE & Fixed Effects**

* Model 4 - IMSCOPE & crisis years t-1 to t-5
xi: xtreg imscope crises_weighted_new tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m4

* Model 5 - IMSCOPE & crisis years t-1 to t-2
xi: xtreg imscope crises_t_12 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m5

* Model 6 - IMSCOPE & crisis years t-4 to t-5
xi: xtreg imscope crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m6

esttab m4 m5 m6 using tableB.rtf, replace coeflabel (crises_weighted_new "Economic Crisis (t-1 to t-5)" crises_t_12 "Economic Crises (t-1 to t-2)" crises_t_45 "Economic Crises (t-4 to t-5)" tradeshare "Trade Share" concen "Concentration" dem_dummy "Democracy Dummy" civilmem "Civil War" ln_dev "Development" ln_devstd "Development Diversity" ipd_std "Ideal Point Diversity" duration "Duration" members "Members" _cons "Constant")r2 star(~ 0.2 * 0.1 ** 0.05 *** 0.01)

** Table 3 - IMRI and crisis years t-4 to t-5, additional models **

* Model 7 - IMRI & crisis years t-4 to t-5, random effects
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) robust
est sto m7

* Model 8 - IMRI & crisis years t-4 to t-5, 1980s excluded
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd i.year if year>1990, i(nbloc) fe robust
est sto m8

* Model 9 - IMRI & crisis years t-4 to t-5, ipd_std included
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ipd_std i.year, i(nbloc) fe robust
est sto m9

* Model 10 - IMRI & crisis years t-4 to t-5, Members included 
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd members i.year, i(nbloc) fe robust
est sto m10

esttab m7 m8 m9 m10 using tableC.rtf, replace coeflabel (crises_weighted_new "Economic Crisis (t-1 to t-5)" crises_t_12 "Economic Crises (t-1 to t-2)" crises_t_45 "Economic Crises (t-4 to t-5)" tradeshare "Trade Share" concen "Concentration" dem_dummy "Democracy Dummy" civilmem "Civil War" ln_dev "Development" ln_devstd "Development Diversity" ipd_std "Ideal Point Diversity" members "Members" _cons "Constant")r2 star(~ 0.2 * 0.1 ** 0.05 *** 0.01)

*** Tables for the Online Appendix ***

**Table A1**

* Median GDPpc (logged)
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem log_gdppc_md ln_devstd  i.year, i(nbloc) fe robust
est sto m11

* Democracy measure of Cheibub et al. 
xi: xtreg imri crises_t_45 tradeshare concen dem_CGV civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m12

* Civil war - dummy variable
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem_dummy ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m13

* Ideological convergene 
xi: xtreg imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd execrlc_cnvrg i.year, i(nbloc) fe robust
est sto m14

* Interaction of economic convergence and crisis
xi: xtreg imri crises_t_45 execrlc_cnvrg c.execrlc_cnvrg#c.crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd i.year, i(nbloc) fe robust
est sto m15

esttab m11 m12 m13 m14 m15 using tableOA1.rtf, replace coeflabel (crises_t_45 "Economic Crises (t-4 to t-5)" tradeshare "Trade Share" concen "Concentration" dem_dummy "Democracy Dummy" civilmem "Civil War" civilmem_dummy "Civil War Dummy" ln_dev "Development" log_gdppc_md "Median GDPPC" ln_devstd "Development Diversity" dem_CGV "Democracy Cheibub" execrlc_cnvrg "Ideological Convergence" _cons "Constant")r2 star(~ 0.2 * 0.1 ** 0.05 *** 0.01)

** Table A2 **

* Logged DV *
xi: xtreg ln_imri crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m16

* DV with a focus on monetary cooperation, etc. 
xi: xtreg immein crises_t_45 tradeshare concen dem_dummy civilmem ln_dev ln_devstd i.year, i(nbloc) fe robust
est sto m17

* Short-term crisis - t-1
xi: xtreg imri crisis_t_1 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m18

* long-term crisis - t-4 to t-6 
xi: xtreg imri crisis_t_46 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m19

* long-term crisis - t-6 to t-7 
xi: xtreg imri crisis_t_67 tradeshare concen dem_dummy civilmem ln_dev ln_devstd  i.year, i(nbloc) fe robust
est sto m20

esttab m16 m17 m18 m19 m20 using tableOA2.rtf, replace coeflabel (crises_t_45 "Economic Crises (t-4 to t-5)" crisis_t_46 "Economic Crisis (t-4 to t-6)" crisis_t_67 "Economic Crisis (t-6 to t-7)" crisis_t_1 "Economic Crises (t-1)" tradeshare "Trade Share" concen "Concentration" dem_dummy "Democracy Dummy" civilmem "Civil War" civilmem_dummy "Civil War Dummy" ln_dev "Development" ln_devstd "Development Diversity" _cons "Constant")r2 star(~ 0.2 * 0.1 ** 0.05 *** 0.01)


